package model;

import java.sql.Date;

/**
 * @author 王俊彪
 * @version 1.0
 */
public class Student {
    private Integer sno;
    private String sname;
    private String sgender;
    private Date sbirthday;

    public Student() {
    }

    public Student(String sname, String sgender, Date sbirthday) {
        this.sname = sname;
        this.sgender = sgender;
        this.sbirthday = sbirthday;
    }

    public Student(Integer sno, String sname, String sgender, Date sbirthday) {
        this.sno = sno;
        this.sname = sname;
        this.sgender = sgender;
        this.sbirthday = sbirthday;
    }

    @Override
    public String toString() {
        return "Student{" +
                "sno=" + sno +
                ", sname='" + sname + '\'' +
                ", sgender='" + sgender + '\'' +
                ", sbirthday=" + sbirthday +
                '}';
    }

    public Integer getSno() {
        return sno;
    }

    public void setSno(Integer sno) {
        this.sno = sno;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getSgender() {
        return sgender;
    }

    public void setSgender(String sgender) {
        this.sgender = sgender;
    }

    public Date getSbirthday() {
        return sbirthday;
    }

    public void setSbirthday(Date sbirthday) {
        this.sbirthday = sbirthday;
    }
}
